package ru.papergames.web.forms;

import org.springframework.validation.Errors;
import ru.papergames.web.model.User;

/**
 * @author Alexander Troshanin
 */

@Deprecated
public class UserForm {

    private Long id;

    private String userName;

    private String userPass;

    private String fullName;

    private boolean sex;

    private String email;

    public UserForm() {
    }

    public UserForm(User user) {
        this.id = user.getId();
        this.userName = user.getUserName();
        this.userPass = user.getUserPass();
        this.fullName = user.getFullName();
        this.sex = user.isSex();
        this.email = user.getEmail();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void validate(Errors errors) {
        //Todo: implement validation
    }
}
